home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / c++ / cartpol.z / cartpol
Encoding:
Text File  |  2002-10-03  |  2.8 KB  |  62 lines

  1. CARTPOL(3C)                                           Last changed: 3-22-99
  2.  
  3.  
  4. NNAAMMEE
  5.      ppoollaarr - Functions for the C++ Complex Math Library
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ccoommpplleexx..hh>>
  9.  
  10.      ccllaassss ccoommpplleexx {{
  11.  
  12.      ppuubblliicc::
  13.  
  14.           ffrriieenndd ddoouubbllee  aabbss((ccoommpplleexx));;
  15.           ffrriieenndd ddoouubbllee  aarrgg((ccoommpplleexx));;
  16.           ffrriieenndd ccoommpplleexx ccoonnjj((ccoommpplleexx));;
  17.           ffrriieenndd ddoouubbllee  iimmaagg((ccoommpplleexx));;
  18.           ffrriieenndd ddoouubbllee  nnoorrmm((ccoommpplleexx));;
  19.           ffrriieenndd ccoommpplleexx ppoollaarr((ddoouubbllee,, ddoouubbllee == 00));;
  20.           ffrriieenndd ddoouubbllee  rreeaall((ccoommpplleexx));;
  21.  
  22.      }};;
  23.  
  24. IIMMPPLLEEMMEENNTTAATTIIOONN
  25.      IRIX systems (--oo3322 ABI only)
  26.  
  27. DDEESSCCRRIIPPTTIIOONN
  28.           NOTE: This man page applies only to the --oo3322 ABI.  The MIPSpro
  29.           --nn3322 and --6644 ABIs support the template-based complex class which
  30.           is included in the C++ standard library and is automatically
  31.           loaded by the MIPSpro C++ compiler.  The --llmm option must still be
  32.           used to link the math library.
  33.  
  34.      The following functions are defined for ccoommpplleexx, where:
  35.       - _d, _m, and _a are of type iinntt and
  36.       - _x and _y are of type ccoommpplleexx.
  37.  
  38.      _d == aabbss((_x))     Returns the absolute value or magnitude of _x.
  39.  
  40.      _d == nnoorrmm((_x))    Returns the square of the magnitude of _x.  It is faster
  41.                     than aabbss, but more likely to cause an overflow error.
  42.                     It is intended for comparison of magnitudes.
  43.  
  44.      _d == aarrgg((_x))     Returns the angle of _x, measured in radians in the
  45.                     range --n to -n.
  46.  
  47.      _y == ccoonnjj((_x))    Returns the complex conjugate of _x.  That is, if _x is
  48.                     ((rreeaall,, iimmaagg)), then ccoonnjj((_x)) _i_s ((rreeaall,, --iimmaagg)).
  49.  
  50.      _y == ppoollaarr((_m,, _a))
  51.                     Creates a complex given a pair of polar coordinates,
  52.                     magnitude _m, and angle _a, measured in radians.
  53.  
  54.      _d == rreeaall((_x))    Returns the real part of _x.
  55.  
  56.      _d == iimmaagg((_x))    Returns the imaginary part of _x.
  57.  
  58. SSEEEE AALLSSOO
  59.      ccoommpplleexx(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxeexxpp(3C), ccppllxxttrriigg(3C)
  60.  
  61.      This man page is available only online.
  62.